{% extends "base.html" %}

{% block title %}
    Post ticket 
{% endblock %}

{% block extrahead %}
	<style>
		input {
			width: 280px;
		}
		
		textarea {
			width:440px;
			height: 70px;
		}
	
		th {
			white-space: nowrap;
			
		}
	
		th, tr, td {
			border:0px none;
			background-color: white;
		}
	</style>
{% endblock %}

{% block content %}
	{% if ticket_form %}
		<h1 class="about_header">Post ticket</h1>
		<div class="form_layer" style="padding: 3px;">
			<form action="/post_ticket/" method="post" accept-charset="utf-8">
				<table cellspacing="0">
					{{ ticket_form }}
				<tr>
					<td colspan="2">
						<input type="submit" class="submit" value="Add Ticket">
					</td>
				</tr>
				</table>
			</form>
		</div>
	{% else %}
		<h1 class="about_header">Thank you!</h1>
		
		<p class="about help_text" style="font-size:15px;">
		Ticket is successfully posted. 
		Your opinion is very valuable to us. 
		<br/>
		The few minutes you invested will help us better serve you and our other users.
		</p>
		<p class="about help_text" style="font-size:15px;">
		Thanks for helping!
		</p>
	{% endif %}
{% endblock %}